package com.lun.blog.service;

import com.lun.blog.pojo.Type;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;
import java.util.Set;

public interface TypeService {

    Type getType(Long id);

    Type saveType(Type type);

    void updateType(Long id,Type type);

    void deleteType(Long id);

    Page<Type> listPage(Pageable pageable);

    Boolean findByTypeName(String typeName);

    List<Type> findAll();

    Type findById(Long typeId);

    List<Type> findByTypeId(Set<Long> typeId);
}
